module main;

import std.stdio;
import std.getopt;

import database;
import table;
import interpreter;

import interpreter_sql;
import storage_plaintext;

void main(string[] args)
{
  getopt(args,"help", delegate void () {
    writeln("This program is a basic SQL database implementation.");
    writeln("Read the documentation for futher instructions.");
  });

  // REPL
  auto interpreter = new SQLInterpreter;
  interpreter.setStorageModell(new PlainTextStorage);
  interpreter.repl( () => readln(), x => write(x) );
}
